﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AttendenceStat.aspx.cs" Inherits="Page_AttendenceStat" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Wicresoft.Common" Namespace="Wicresoft.Web.UI.WebControls"
    TagPrefix="wsc" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>值班统计表</title>
    <link href="~/Style/Css/Css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="/Attendences.Web/Js/jquery.js"></script>

    <link href="../Style/Css/calendar.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../Js/calendar.js"></script>

    <style type="text/css">
        *
        {
            margin: 0px;
            padding: 0px;
        }
        body
        {
            cursor: auto;
        }
        html
        {
            overflow: hidden;
        }
        #sideBar
        {
            width: 100%;
            overflow: hidden;
        }
        #main
        {
            overflow: auto;
            width: 50%;
        }
        #toggleBar, .div
        {
            width: 3px;
            height: 100%;
            overflow: hidden;
            background: #F1F6FC;
            cursor: e-resize;
            border-left: 1px solid #99BBE8;
            border-right: 1px solid #99BBE8;
        }
        td
        {
            display: block;
            overflow: auto;
            word-break: break-all;
        }
        #mainUD
        {
            overflow: auto;
        }
        #toggleBarUD, .divUD
        {
            height: 3px;
            width: 100%;
            overflow: hidden;
            background: #F1F6FC;
            cursor: n-resize;
            border-top: 1px solid #99BBE8;
            border-bottom: 1px solid #99BBE8;
        }
        .btn
        {
            border-right: #2C59AA 1px solid;
            padding-right: 2px;
            border-top: #2C59AA 1px solid;
            padding-left: 2px;
            font-size: 12px;
            filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
            border-left: #2C59AA 1px solid;
            cursor: hand;
            color: black;
            padding-top: 2px;
            border-bottom: #2C59AA 1px solid;
        }
    </style>

    <script type="text/javascript">
        function OverChangeClass(obj) {
            if (obj.className != "Cur")
                obj.className = 'Over'
        }
        function ReturnClass(obj) {
            obj.className = obj.oldclass;
        }
    </script>

</head>
<body scroll="no">
    <form id="form1" runat="server">
    <div>
        <table cellspacing="0" cellpadding="0" border="0" class="MainTable" width="100%"
            height="100%" style="">
            <tr>
                <td valign="top" width="50%">
                    <div id="sideBar">
                        <table cellspacing="0" cellpadding="0" border="0" class="" width="100%" height="100%">
                            <tr>
                                <td class="TitleBar">
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr>
                                            <td class="MainTitle">
                                                值班统计
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr class="AdvancedSearch">
                                <td class="ToolBar" colspan="2">
                                    <table>
                                        <tr valign="middle">
                                            <td>
                                                &nbsp;&nbsp;值班日期
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" onfocus="calendar();" ID="txtStartDate" CssClass="WSCL_Input"
                                                    Width="120px"></asp:TextBox>
                                            </td>
                                            <td>
                                                &nbsp;&nbsp;--&nbsp;&nbsp;
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" onfocus="calendar();" ID="txtEndDate" CssClass="WSCL_Input"
                                                    Width="120px"></asp:TextBox>
                                            </td>
                                            <td style="display:none">
                                                <asp:DropDownList runat="server" ID="rpType2">
                                                    <asp:ListItem Text="全部" Value=""></asp:ListItem>
                                                    <asp:ListItem Text="日常值班" Value="日常值班"></asp:ListItem>
                                                    <asp:ListItem Text="大厅值班" Value="大厅值班"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td class="ToolMenu">
                                                <div class="Normal" oldclass="Normal" style="float: left; width: 70px; padding-top: 2px;
                                                    padding-bottom: 2px" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                                                    <asp:LinkButton runat="server" ID="lbtnSearch" OnClick="lbtnSearch_Click"><span><img src="../Images/Icon/Action/Icon-Search.png" alt="查询" /></span><span>查询</span></asp:LinkButton>
                                                </div>
                                            </td>
                                            <td colspan="2" class="ToolMenu">
                                                <div class="Normal" oldclass="Normal" style="float: left; width: 70px" onmouseover="OverChangeClass(this);"
                                                    onmouseout="ReturnClass(this)">
                                                    <asp:LinkButton runat="server" ID="lbtnExport" OnClick="lbtnExport_Click"><span><img src="../Images/Icon/Action/import.gif" alt="导出" /></span><span>导出</span></asp:LinkButton>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div id="MainList" style="width: 100%; overflow: auto;" class="ScrollDiv">
                                        <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
                                            <tr class="Normal">
                                                <td width="120" align="center" rowspan="2">
                                                    序号
                                                </td>
                                                <td width="120" align="center" rowspan="2">
                                                    姓名
                                                </td>
                                                <td rowspan="2" align="center" width="120">
                                                    夜间值班
                                                </td>
                                                <td rowspan="2" align="center" width="120">
                                                    白天值班
                                                </td>
                                                <td colspan="2" align="center">
                                                    节假日值班
                                                </td>
                                            </tr>
                                            <tr class="Normal">
                                                <td width="120" align="center">
                                                    白天
                                                </td>
                                                <td align="center">
                                                    夜晚
                                                </td>
                                            </tr>
                                        </table>
                                        <div id="TheList" style="height: 620px; width: 100%; overflow-y: scroll">
                                            <table width="100%" class="MainInfolist">
                                                <asp:Repeater runat="server" ID="rptInfo">
                                                    <ItemTemplate>
                                                        <tr class="Normal">
                                                            <td width="120" align="left">
                                                                <%# Container.ItemIndex+1 %>
                                                            </td>
                                                            <td width="120" align="left">
                                                                <%# Eval("UserDisplayName") %>
                                                            </td>
                                                            <td width="120">
                                                                <%# Eval("NightCount")%>
                                                            </td>
                                                            <td width="120">
                                                                <%# Eval("DayCount")%>
                                                            </td>
                                                            <td width="120">
                                                                <%# Eval("JJRDayCount")%>
                                                            </td>
                                                            <td>
                                                                <%# Eval("JJRNightCount")%>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </table>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>

<script type="text/javascript">
    function setHeight() {
        var div = document.getElementById("TheList");
        var height = document.body.clientHeight;
        div.style.height = height - 100 + "px";

    }
    setHeight();
    try { window.onresize = setHeight(); } catch (e) { }
</script>

</html>
